package leecode

func smallerNumbersThanCurrent(nums []int) (result []int) {
	for i := 0; i < len(nums); i++ {
		count := 0
		for j := 0; j < len(nums); j++ {
			if nums[i] > nums[j] {
				count++
			}
		}
		result = append(result, count)
	}
	return result
}
